class Item < ActiveRecord::Base
  belongs_to :firm

  def picture=(input_data) 
    self.picture_filename = input_data.original_filename 
    self.picture_content_type = input_data.content_type.chomp 
    self.item_picture = input_data.read 
  end 
  
end
